package com.xm;

public class VarType_MethodParameter {
    public static void main(String[] args) {
        int a = 10, b = 20;
        swap(a, b);
        System.out.println("a = " + a + ", b = " + b);
    }

    private static void swap(int x, int y) {

        int temp = x;
        x = y;
        y = temp;

        System.out.println("temp = " + temp);
        System.out.println("x = " + x);
        System.out.println("y = " + y);
    }

}
